/**
*  \file crc16.h
*
*  \brief    Crc16 module.
*
*  \author   Michael Kunkelmann  <m.kunkelmann@webergmbh.de>
*
*
*/

#ifndef CRC16_H_INCLUDED
#define CRC16_H_INCLUDED

/*================================================[ public includes  ]================================================*/
#include "../cfg/prj.h"

/*================================================[ public defines   ]================================================*/

/*================================================[ public datatypes ]================================================*/


/*================================================[ public variables ]================================================*/

/*================================================[ public functions ]================================================*/


/**
*  Crc16 calculation.
*
*  The function crc16_check() calculates the crc16-ccitt from the given data for the specified length.
*
*  \param crc16_obj Pointer to the checksum object. It is not save to pass NULL.
*  \param src       Pointer to the data beeing checked. It is not save to pass NULL.
*  \param len       Length of the data in byte to be checked.
*
*/
U16 crc16( U16 crc_value, void const* src, pal_size_t len );

/*====================================================================================================================*/


#endif

/***********************************************************************************************************************
*                             Copyright 2011 Linde Material Handling. All rights reserved.                             *
***********************************************************************************************************************/
